package com.term.domain.enums;

/**
 * Created by Administrator on 2017/1/5.
 */
public enum StoreStatusEnums implements BaseEnum<StoreStatusEnums, String> {

    /** 上架. */
    SHELVE( "SHELVE", "上架" ),

    /** 下架. */
    UNSHELVE( "UNSHELVE", "下架" ),

    /** 审核中. */
    AUDITING( "AUDITING", "审核中" ),

    /** 审核未通过. */
    UNACCEPTED( "UNACCEPTED", "审核未通过" )
    ;

    private final String value;
    private final String displayName;
    private static java.util.Map<String, StoreStatusEnums> valueMap = new java.util.HashMap<>();

    static {
        for ( StoreStatusEnums e : StoreStatusEnums.values() ) {
            valueMap.put( e.value, e );
        }
    }

    StoreStatusEnums(String value, String displayName ) {
        this.value = value;
        this.displayName = displayName;
    }

    @Override
    public StoreStatusEnums getEnum(String value ) {
        return valueMap.get( value );
    }

    @Override
    public java.util.Map<String, StoreStatusEnums> getAllValueMap() {
        return valueMap;
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public String getDisplayName() {
        return displayName;
    }
}
